home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / bibtex / Makefile.orig < prev    next >
Encoding:
Makefile  |  1988-11-09  |  811 b   |  35 lines

  1. ############################
  2. # Makefile for BibTeX in C #
  3. ############################
  4.  
  5. OPT=-O
  6. SITEDIR=..
  7. CFLAGS=$(OPT) -I$(SITEDIR)
  8. LDFLAGS=-s
  9. RM=/bin/rm
  10. TANGLE=../texware/tangle
  11.  
  12. bibtex:        bibtex.o bibext.o
  13.         $(CC) $(LDFLAGS) $(CFLAGS) -o bibtex bibtex.o bibext.o
  14.  
  15.  
  16. bibtex.o:    bibtex.c bibtex.h $(SITEDIR)/site.h
  17. bibext.o:    bibext.c $(SITEDIR)/site.h
  18.  
  19. bibtex.c:    bibtex.p bibtex.defines
  20.         cat bibtex.defines bibtex.p \
  21.             | ../web2cdir/web2c -hbibtex.h \
  22.             | sed -f sed.script \
  23.             | ../web2cdir/fixwrites > bibtex.c
  24.         mv -f coerce.h xcoerce.h
  25.         sed -e 's/(buftype)//g' -e 's/(pdstype)//g' < xcoerce.h > coerce.h
  26.         $(RM) -f xcoerce.h bibtex.pool
  27.  
  28. bibtex.p:    bibtex.web bibtex.ch
  29.         $(TANGLE) bibtex.web bibtex.ch
  30.  
  31. clean:
  32.         rm -f bibtex *.o xcoerce.h bibtex.pool bibtex.p
  33. veryclean:    clean
  34.         rm -f bibtex.c coerce.h
  35.